/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* 头部样式 */
header {
    background-color: #1e88e5;
    color: white;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* 内容区域 */
main {
    flex: 1;
    overflow: hidden;
}

#content-frame {
    width: 100%;
    height: calc(100vh - 115px); /* 减去头部和底部导航栏的高度 */
    border: none;
    overflow: auto;
}

/* 底部标签栏 */
.tab-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: white;
    height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 33.33%;
    height: 100%;
    color: #555;
    transition: all 0.2s ease;
}

.tab-item.active {
    color: #1e88e5;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.tab-item span {
    font-size: 12px;
}

/* 页面样式 */
.page {
    background-color: #f5f7fa;
    padding-bottom: 20px;
}

.page-content {
    padding: 16px;
}

.page-content h2 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 500;
}

/* 筛选区域 */
.filter-section {
    display: flex;
    margin-bottom: 16px;
    gap: 10px;
}

.filter-dropdown {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.search-input {
    flex: 2;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

/* 工作卡片 */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job-card {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-card.new {
    border-left: 4px solid #1e88e5;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-title {
    font-size: 16px;
    font-weight: 500;
}

.job-salary {
    color: #f57c00;
    font-weight: 500;
    font-size: 15px;
}

.company-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    color: #666;
    background-color: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 个人资料样式 */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
}

.user-title {
    font-size: 14px;
    color: #666;
}

/* 选项样式 */
.profile-options {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.option-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.option-item:last-child {
    border-bottom: none;
}

.option-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.option-arrow {
    position: absolute;
    right: 16px;
    color: #999;
    font-size: 18px;
}

.badge {
    position: absolute;
    right: 36px;
    background-color: #f57c00;
    color: white;
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
}

/* 活动记录 */
.recent-activity {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recent-activity h3 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
}

.activity-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-icon.apply {
    background-color: rgba(30, 136, 229, 0.1);
    position: relative;
}

.activity-icon.apply::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: #1e88e5;
    border-radius: 50%;
}

.activity-icon.view {
    background-color: rgba(245, 124, 0, 0.1);
    position: relative;
}

.activity-icon.view::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: #f57c00;
    border-radius: 50%;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* 适配各种屏幕尺寸 */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .tab-bar {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 动画效果 */
.tab-item {
    transition: all 0.3s ease;
}

.tab-item:active {
    transform: scale(0.95);
}

.job-card {
    transition: transform 0.2s ease;
}

.job-card:active {
    transform: scale(0.98);
}

/* 语言选择器样式 */
.language-selector-container {
    position: absolute;
    top: 12px;
    right: 16px;
}

.language-selector {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px;
}

.language-selector:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.language-selector option {
    background-color: #333;
    color: white;
}

@media (max-width: 480px) {
    .language-selector {
        font-size: 12px;
        padding: 2px 6px;
        padding-right: 20px;
        background-size: 14px;
    }
    
    .language-selector-container {
        top: 10px;
        right: 10px;
    }
} 